package com.hyjx.framework.component.mutidatasource.datasources;

import com.hyjx.framework.orm.IBaseService;

import java.util.List;

/**
 * 多数据源service
 */
public interface DataSourcesService extends IBaseService {
    /**
     * 增加数据源
     *
     * @param model
     * @return
     */
    public boolean addDs(DataSourcesModel model);
    
    /**
     * 删除数据源
     *
     * @param model
     * @return
     */
    public int deleteDs(DataSourcesModel model);
    
    /**
     * 更新条件
     *
     * @param model
     * @return
     */
    public int updateCondition(DataSourcesModel model);
    
    /**
     * 取到所有数据源
     *
     * @param model
     * @return
     */
    public List serviceAllDs(DataSourcesModel model);
    
}
